package com.stfalcon.chatkit.sample.common.data;

import java.util.Map;

/**
 * 返回数据模型类
 */
public class ReceiveWebSocketDataByJson {

    public Data getData() {
        return data;
    }

    public String getCmd() {
        return cmd;
    }

    private String cmd;

    private Data data;


    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public void setData(Data data) {
        this.data = data;
    }


    private Object ext;

    @Override
    public String toString() {
        return "ReceiveWebSocketDataByJson{" +
                "cmd='" + cmd + '\'' +
                ", data={message=" + data.message +
                ", type="+ data.type +
                ", status=" + data.status +
                "}, ext=" + ext +
                '}';
    }

    public ReceiveWebSocketDataByJson(String cmd, Data data, String ext) {
        this.cmd = cmd;
        this.data = data;
        this.ext = ext;
    }


    public Object getExt() {
        return ext;
    }

    public void setExt(Object ext) {
        this.ext = ext;
    }


    public class Data {
        private String message;

        private String type;

        public String getSecretKey() {
            return secretKey;
        }

        public void setSecretKey(String secretKey) {
            this.secretKey = secretKey;
        }

        private String secretKey;

        public String getType() {
            return type;
        }

        public String getMessage() {
            return message;
        }

        public void setType(String type) {
            this.type = type;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        private int status;

        @Override
        public String toString() {
            return "Data{" +
                    "message='" + message + '\'' +
                    ", type='" + type + '\'' +
                    ", secretKey='" + secretKey + '\'' +
                    ", status=" + status +
                    '}';
        }

        public int getStatus() {
            return status;
        }

        public Data(String message, String type, int status, String secretKey)
        {
            this.message = message;

            this.type = type;

            this.secretKey = secretKey;

            this.status = status;
        }

    }
}
